<template>
  <div>
    <defaultForm :formData="formData6">
      <div slot="formHead_0" class="flexRight">
        <span>第</span>
        <input
          :disabled="$store.state.iptDis"
          type="text"
          placeholder="?"
          style="width: 26px"
          v-model="user.num"
        />
        <span>完成人</span>
      </div>
      <!-- 第 完成人 -->
      <div class="flexLeft flex1" slot="formRight_0">
        <div class="flexLeft borR flex1">
          <div class="awardName borR">姓名</div>
          <input
            :disabled="$store.state.iptDis"
            type="text"
            class="flex1"
            v-model="user.userName"
          />
        </div>
        <div class="flexLeft borR">
          <div class="sex borR">性别</div>
          <input
            :disabled="$store.state.iptDis"
            type="text"
            v-model="user.sex"
          />
        </div>
        <div class="flexLeft borR">
          <div class="sex borR">年龄</div>
          <input
            :disabled="$store.state.iptDis"
            type="text"
            v-model="user.age"
          />
        </div>
        <div class="flexLeft">
          <div class="sex borR">民族</div>
          <input
            :disabled="$store.state.iptDis"
            type="text"
            v-model="user.nation"
          />
        </div>
      </div>
      <!-- 工作单位 -->
      <div slot="formRight_1" class="flexLeft flex1">
        <input
          :disabled="$store.state.iptDis"
          type="text"
          class="flex1"
          v-model="user.workUnit"
        />
        <div class="flexLeft flex1">
          <div class="awardName borL borR">联系电话</div>
          <input
            :disabled="$store.state.iptDis"
            type="text"
            class="flex1"
            v-model="user.tel"
          />
        </div>
      </div>
      <!-- 手机 -->
      <div slot="formRight_2" class="flexLeft flex1">
        <input
          :disabled="$store.state.iptDis"
          type="text"
          class="flex1"
          v-model="user.phone"
        />
        <div class="flexLeft flex1">
          <div class="awardName borL borR">传真</div>
          <input
            :disabled="$store.state.iptDis"
            type="text"
            class="flex1"
            v-model="user.fax"
          />
        </div>
      </div>
      <!-- e-mail -->
      <input
        :disabled="$store.state.iptDis"
        type="text"
        class="flex1"
        slot="formRight_3"
        v-model="user.email"
      />
      <!-- 通讯地址 -->
      <div slot="formRight_4" class="flexLeft flex1">
        <input
          :disabled="$store.state.iptDis"
          type="text"
          class="flex1"
          v-model="user.address"
        />
        <div class="flexLeft flex1">
          <div class="awardName borL borR">邮政编码</div>
          <input
            :disabled="$store.state.iptDis"
            type="text"
            class="flex1"
            v-model="user.postal"
          />
        </div>
      </div>
      <!-- 毕业学校 -->
      <div slot="formRight_5" class="flexLeft flex1">
        <input
          :disabled="$store.state.iptDis"
          type="text"
          class="flex1"
          v-model="user.school"
        />
        <div class="flex2 flexLeft">
          <div class="flexLeft flex1">
            <div class="awardName borL borR">文化程度</div>
            <input
              :disabled="$store.state.iptDis"
              type="text"
              class="flex1"
              v-model="user.education"
            />
          </div>
          <div class="flexLeft flex1">
            <div class="awardName borL borR">学位</div>
            <input
              :disabled="$store.state.iptDis"
              type="text"
              class="flex1"
              v-model="user.academic"
            />
          </div>
        </div>
      </div>
      <!-- 毕业专长 -->
      <div slot="formRight_6" class="flexLeft flex1">
        <input
          :disabled="$store.state.iptDis"
          type="text"
          class="flex1"
          v-model="user.speciality"
        />
        <div class="flex2 flexLeft">
          <div class="flexLeft flex1">
            <div class="awardName borL borR">教务、职称</div>
            <input
              :disabled="$store.state.iptDis"
              type="text"
              class="flex1"
              v-model="user.positional"
            />
          </div>
          <div class="flexLeft flex1">
            <div class="awardName borL borR">毕业时间</div>
            <input
              :disabled="$store.state.iptDis"
              type="text"
              class="flex1"
              v-model="user.graduation"
            />
          </div>
        </div>
      </div>
      <!-- 曾获奖励及荣誉称号 -->
      <div slot="formRight_7" class="textAreaBox flex1">
        <a-textarea class="flex1 textArea" :autosize="{ minRows: 5, maxRows: 10 }" v-model="user.prizeHis" />
      </div>
      <!-- 参加本项目的起止时间 -->
      <div slot="formRight_8" class="textAreaBox flex1">
        <a-textarea class="flex1 textArea" autosize v-model="user.proTime" />
      </div>
      <!-- 本人对项目技术创造性贡献 -->
      <div slot="formRight_9" class="textAreaBox flex1">
        <a-textarea class="flex1 textArea" :autosize="{ minRows: 5, maxRows: 10 }" v-model="user.proContributione" />
      </div>
    </defaultForm>
  </div>
</template>

<script>
import defaultForm from "@/components/form/formDefaultItem.vue";
import { formData6 } from "@/assets/js/projectInfoFormData.js";
export default {
  components: {
    defaultForm,
  },
  props: {
    user: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {
      formData6,
    };
  },
};
</script>

<style lang="scss" scoped>
input {
  text-align: center;
}
.borR {
  border-right: 1px solid #b8babd;
  height: 43px;
  line-height: 43px;
}
.borL {
  border-left: 1px solid #b8babd;
}
.awardName {
  width: 125px;
  text-align: center;
  margin-left: -1px;
}
.sex {
  width: 93px;
  height: 100%;
  text-align: center;
}
.sex + input {
  width: 70px;
}
.textArea {
  border: 0;
}
.textAreaBox {
  border-left: 1px solid #b8babd;
  margin-left: -1px;
}
</style>
